export const getTypeInfo = (status, type = 'name') => {
  let info = [];
  switch (status) {
    case "1":
      info = ['创建项目', 'createProgram'];
      break;

    case "2":
      info = ['资料收集', 'dataCollection'];
      break;

    case "3":
      info = ['现场勘探', 'reconnaissanceTrip'];
      break;

    case "4":
      info = ['环境质量', 'environmentQuality'];
      break;

    case "5":
      info = ['报告编制', 'reportReview'];
      break;

    case "6":
      info = ['分公司一审', 'firstInstance'];
      break;

    case "7":
      info = ['分公司二审', 'secondInstance'];
      break;

    case "8":
      info = ['初审', 'firstTrial'];
      break;
    case "9":
      info = ['复审', 'reExamine'];
      break;
    case "10":
      info = ['终审', 'lastInstance'];
      break;
    case "11":
      info = ['报告送审', 'reportTria'];
      break;
    case "12":
      info = ['技术评估', 'technologyAssessment'];
      break;
    case "13":
      info = ['报告报批', 'reportApproval'];
      break;
    case "14":
      info = ['报告公示', 'reportPublicity'];
      break;
    case "15":
      info = ['报告存档', 'reportArchives'];
      break;

    default:
      return info = ['报告存档', 'reportArchives'];'';
  }

  if (type === 'name') {
    return info[0];
  } else {
    return info[1];
  }
};